<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>


<div id="sptInfoWizard" class="box tabbedBox">
	<div class="header">
		<ul>
			<li><a class="current" href="#basicInfo">详细信息</a>
			</li>
			<li><a href="#inOutList" onclick="loadDetail()">出入库明细</a>
			</li>
		</ul>
		<h2>&nbsp;</h2>
	</div>
	<div style="padding:0" class="content tabbed">
		<div id="basicInfo">

			<form:form id="sparepartForm" commandName="model" cssClass="validate">

				<table class=" form-table">
					<tr>
						<td class="td1">编号：</td>
						<td class="td2">${model.code}</td>
					</tr>
					<tr>
						<td class="td1">备件分类：</td>
						<td class="td2">${model.treenode_name_path}</td>

					</tr>
					<tr>
						<td class="td1">名称：</td>
						<td class="td2">${model.name}</td>
					</tr>
					<tr>
						<td class="td1">型号：</td>
						<td class="td2">${model.model}</td>
					</tr>
					<tr>
						<td class="td1">单位：</td>
						<td class="td2">${model.unit}</td>
					</tr>
					<tr>
						<td class="td1">最小库存：</td>
						<td class="td2">${model.min_stock_result}</td>
					</tr>
					<tr>
						<td class="td1">当前库存：</td>
						<td class="td2">${model.cur_stock_quantity}</td>
					</tr>
				</table>

			</form:form>

		</div>

		<div id="inOutList"></div>
	</div>

</div>


<isperp:buttonList>

</isperp:buttonList>

<script type="text/javascript">
	function loadDetail() {
		$("#inOutList").empty().load("sparepart/sparepart/old/inOutList?sparepartId=${model.id}");
	}
</script>
